<template>
  <div class="container">
    <div class="footer" v-if="show">
      <text class="btn btn-warning btn-large" style="flex: 1" @click="cartClick">选品车({{itemList.length}})</text>
    </div>
  </div>
</template>
<script>
require('../include/page-xdom')
let navigator = require('../include/xnavigator')
module.exports = {
  components: {

  },
  props: {
    itemList: {default: []},
    show: {default: false}
  },

  data () {
    return {

    }
  },
  created () {

  },
  methods: {
    cartClick () {
      navigator.push('item-selection-cart.js')
    }
  }
}
</script>
<style lang="scss">

  @import "../sass/var";
  @import "../sass/mixin";
  @import "../sass/icon";
  @import "../sass/buttons";

  .footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
    flex-direction: row;
  }
</style>
